from tortoise import fields
from .base import BaseModel, TimestampMixin

class Answer(BaseModel, TimestampMixin):
    question = fields.CharField(max_length=255, null=True, description="问题")
    answer = fields.TextField(null=True, description="回答")
    add_id = fields.IntField(default=0, null=True, description="录入人")
    class Meta:
        table = "answer"
